package tt.com.cremationmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import tt.com.common.model.Cremate;
import tt.com.common.model.CremateStove;
import tt.com.common.model.Dead;
import tt.com.common.model.YxCommonServeProviders;
import tt.com.common.util.PageUtil;

import java.util.List;

public interface CrematesMapper extends BaseMapper<Cremate> {
    //查询所有空闲火化炉
    List<CremateStove> selectFreeCreateStove();
    //设置骨灰收敛时间
    int updateConvergenceTime(@Param(value = "dead") Dead dead);
    //设置火化炉状态为占用
    int updateCreateStoveStatusBy2(@Param(value = "id") String id);
    //设置火化炉状态为空闲
    int updateCreateStoveStatusBy1(@Param(value = "id") String id);
    //查询信息
    List<Cremate> selectCremateMessage(@Param(value = "cremate")Cremate cremate, @Param(value = "page") PageUtil pageUtil);
    //查询服务项目表
    List<YxCommonServeProviders> selectService(@Param(value = "service") String service);
}
